﻿
<!DOCTYPE html>
  <html>
 <style>

   #t1{
      height: 40px;
   }
   td,th{
      text-align: center;
   }

</style>

<div class="bjui-pageHeader">
    <!-- 顶部模块[如：功能按钮、搜索面板] -->
      <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/bb214/equipmentTable" method="post">
          <br class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="equipmentTable" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label >设备编号：</label>&nbsp;
            <g:select name="equipmentId" from="${sameIdList}" data-toggle="selectpicker" data-live-search="true" optionKey="EQUIPMENT_ID" optionValue="EQUIPMENT_ID" value="${equipmentId}" noSelection="['':'ALL']" />&nbsp;
              <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
              <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/bb214/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;
          </div>
       </form>
   </div>

<div class="bjui-pageContent tableContent">
    <g:if test="${equipmentTableList.size() > 0}">
        <table  data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr id="t1">
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance!='RN'}">
                        <g:if test="${headInstance=='GLASSID' && type=='mod'}">
                            <th  width="125">PanelID</th>
                        </g:if>
                        <g:else>
                            <th  width="125"><g:message code="${headInstance}" default="${headInstance}"/></th>
                        </g:else>
                    </g:if>
                </g:each>
            </tr>
            </thead>
            <tbody>
            <g:each in="${equipmentTableList}" status="i" var="dataInstance">
                <tr>
                    <g:each in="${tableHeadList}" status="j" var="headInstance">
                        <g:if test="${headInstance!='RN'}">
                            <td>${dataInstance["${headInstance}"]}</td>
                        </g:if>
                    </g:each>
                </tr>
            </g:each>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel" />
    </g:else>
</div>
<g:render template="../template/pagination" />
</html>
